<?php
namespace addons\caipiao\service;

use addons\caipiao\model\Cplist;

class HomeService{
    //查询中奖列表
    public function lists(
        string $openid,
        int $page,
        int $limit
    ){
        return Cplist::with('mpfriends')
            ->where(['openid'=>$openid])
            ->page($page,$limit)
            ->order('create_time','desc')
            ->select();
    }
}
